********************************************************************************
** 	TITLE: 00_master_all.do
**
**	PROJECT: Covid 19
**
**	AUTHOR: XY
**
**	LAST MODIFIED: 8/8/2022
********************************************************************************
	version 15
	set more off 
	clear all 
	pause on
	cap log close
	cap log c
	
	cap ssc install winsor
	cap ssc install blindschemes
	cap ssc install coefplot
	cap ssc install qqvalue
	cap ssc install outreg2
	cap ssc install outreg
	cap ssc install parmest
	cap ssc install ietoolkit
	cap ssc install regsave
	cap ssc install reghdfe
	cap ssc install ftools
	cap ssc install estout
	
	set scheme plotplain
	
********************************************************************************
*	0. Setting directories & globals
********************************************************************************	

	local currentuser = c(username)
	global DRIVE "/Users/`c(username)'/Dropbox/West Bengal Information Campaign/AER_I/for_submission"
	global DO "$DRIVE/code/1_do_files"
	macro list _all
	
********************************************************************************
*	1. Data construction
********************************************************************************	

	do "$DO/01_processing.do"
		// Output processed variables from "outcomes survey" which will be used for regressions
	
	do "$DO/02_newprocessing_ASHA.do"
		// Output processed variables from "ASHA survey" which will be used for regressions
	
		
********************************************************************************
*	2. Main exhibit construction
********************************************************************************	

	do "$DO/03_ASHA_main_regressions.do"
		// Gives us Table1 and Figure1 for the main paper

	do "$DO/04_GP_main_regressions.do"
		// Gives us Table2 from the main paper
		
********************************************************************************
*	3. Appendix exhibit construction
********************************************************************************

	do "$DO/05_ASHA_appendix_regressions.do"
		// Creates supplementary tables A2-A5, A12, A16-A20 in the Online Appendix
		
	do "$DO/06_GP_appendix_regressions.do"
		// Creates supplementary tables A7, A11, A13-A15 in the Online Appendix
			
	do "$DO/07_facebook_regressions_clean.do"
		// Creates Figure 2 for the main paper and supplementary table A6 in the Online Appendix
		
	do "$DO/08_spam_survey_table.do"
		// Creates supplementary table A1 in the Online Appendix
	
	do "$DO/09_youtube_views.do"
		// Creates supplementary figure A2 in the Online Appendix
		
	cap log close
	